home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 48
/
PC Gamer IT CD 48 1-2.iso
/
age2
/
AoE2demo.exe
/
1033
/
CABFILE
/
MSGAME.CAB
/
Data
/
gamedata.drs
/
Unnamed File 000011.bina
< prev
next >
Wrap
Text File
|
1999-10-01
|
15KB
|
908 lines
;*********************************************************
#load-if-defined BRITON-CIV
(defrule
(goal combat-arm NOTICE)
=>
(set-goal 13 10)
(set-goal monk-rating GOOD)
(disable-self)
)
(defrule
(goal combat-arm NOTICE)
=>
(generate-random-number 24)
(set-goal castle-attempt NO)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 1)
(random-number <= 3)
=>
(set-goal combat-arm INFANTRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 4)
=>
(set-goal combat-arm LIGHTCAV)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 5)
(random-number <= 7)
=>
(set-goal combat-arm CAVARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 8)
(random-number <= 12)
=>
(set-goal combat-arm ARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 13)
=>
(set-goal combat-arm UNIQUE)
(set-goal pre-unique-arm ARCHER)
(set-goal castle-attempt YES)
)
(defrule
(goal combat-arm UNIQUE)
(building-type-count castle == 0)
(not (goal pre-unique-arm ARCHER) )
=>
(set-goal pre-unique-arm ARCHER)
)
#end-if
;*********************************************************
#load-if-defined BYZANTINE-CIV
(defrule
(goal combat-arm NOTICE)
=>
(set-goal 13 0)
(set-goal monk-rating GOOD)
(disable-self)
)
(defrule
(goal combat-arm NOTICE)
=>
(set-goal castle-attempt NO)
(generate-random-number 22)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 1)
(random-number <= 3)
=>
(set-goal combat-arm INFANTRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 4)
=>
(set-goal combat-arm CAVALRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 5)
=>
(set-goal combat-arm LIGHTCAV)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 6)
(random-number <= 8)
=>
(set-goal combat-arm CAVARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 9)
(random-number <= 11)
=>
(set-goal combat-arm ARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 12)
=>
(set-goal combat-arm UNIQUE)
(set-goal pre-unique-arm CAVALRY)
(set-goal castle-attempt YES)
)
(defrule
(goal combat-arm UNIQUE)
(current-age == feudal-age)
(not (goal pre-unique-arm INFANTRY) )
=>
(set-goal pre-unique-arm INFANTRY)
)
(defrule
(goal combat-arm UNIQUE)
(building-type-count castle == 0)
(current-age >= castle-age)
(not (goal pre-unique-arm CAVALRY) )
=>
(set-goal pre-unique-arm CAVALRY)
)
#end-if
;*********************************************************
#load-if-defined CELTIC-CIV
(defrule
(goal combat-arm NOTICE)
=>
(set-goal 13 1)
(set-goal monk-rating POOR)
(disable-self)
)
(defrule
(goal combat-arm NOTICE)
=>
(set-goal castle-attempt NO)
(generate-random-number 24)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 1)
(random-number <= 5)
=>
(set-goal combat-arm INFANTRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 6)
(random-number <= 8)
=>
(set-goal combat-arm CAVALRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 9)
=>
(set-goal combat-arm LIGHTCAV)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 10)
(random-number <= 12)
=>
(set-goal combat-arm CAVARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 13)
=>
(set-goal combat-arm UNIQUE)
(set-goal pre-unique-arm INFANTRY)
(set-goal castle-attempt YES)
)
(defrule
(goal combat-arm UNIQUE)
(building-type-count castle == 0)
(not (goal pre-unique-arm INFANTRY) )
=>
(set-goal pre-unique-arm INFANTRY)
)
#end-if
;*********************************************************
#load-if-defined CHINESE-CIV
(defrule
(goal combat-arm NOTICE)
=>
(set-goal 13 1)
(set-goal monk-rating FAIR)
(disable-self)
)
(defrule
(goal combat-arm NOTICE)
=>
(set-goal castle-attempt NO)
(generate-random-number 16)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 1)
(random-number <= 3)
=>
(set-goal combat-arm INFANTRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 4)
=>
(set-goal combat-arm LIGHTCAV)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 5)
(random-number <= 7)
=>
(set-goal combat-arm CAVARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 8)
=>
(set-goal combat-arm ARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 9)
=>
(set-goal combat-arm UNIQUE)
(set-goal pre-unique-arm ARCHER)
(set-goal castle-attempt YES)
)
(defrule
(goal combat-arm UNIQUE)
(building-type-count castle == 0)
(not (goal pre-unique-arm ARCHER) )
=>
(set-goal pre-unique-arm ARCHER)
)
#end-if
;*********************************************************
#load-if-defined FRANKISH-CIV
(defrule
(goal combat-arm NOTICE)
=>
(set-goal 13 0)
(set-goal monk-rating FAIR)
(disable-self)
)
(defrule
(goal combat-arm NOTICE)
=>
(set-goal castle-attempt NO)
(generate-random-number 22)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 1)
=>
(set-goal combat-arm INFANTRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 2)
(random-number <= 7)
=>
(set-goal combat-arm CAVALRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 8)
=>
(set-goal combat-arm LIGHTCAV)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 9)
(random-number <= 11)
=>
(set-goal combat-arm CAVARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 12)
=>
(set-goal combat-arm UNIQUE)
(set-goal pre-unique-arm INFANTRY)
(set-goal castle-attempt YES)
)
(defrule
(goal combat-arm UNIQUE)
(building-type-count castle == 0)
(not (goal pre-unique-arm INFANTRY) )
=>
(set-goal pre-unique-arm INFANTRY)
)
#end-if
;*********************************************************
#load-if-defined GOTHIC-CIV
(defrule
(goal combat-arm NOTICE)
=>
(set-goal 13 0)
(set-goal monk-rating POOR)
(disable-self)
)
(defrule
(goal combat-arm NOTICE)
=>
(set-goal castle-attempt NO)
(generate-random-number 18)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 1)
(random-number <= 5)
=>
(set-goal combat-arm INFANTRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 6)
=>
(set-goal combat-arm LIGHTCAV)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 7)
(random-number <= 9)
=>
(set-goal combat-arm CAVARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 10)
=>
(set-goal combat-arm UNIQUE)
(set-goal pre-unique-arm INFANTRY)
(set-goal castle-attempt YES)
)
(defrule
(goal combat-arm UNIQUE)
(building-type-count castle == 0)
(not (goal pre-unique-arm INFANTRY) )
=>
(set-goal pre-unique-arm INFANTRY)
)
(defrule
(goal wall-build YES)
=>
(set-goal wall-build NO)
)
#end-if
;*********************************************************
#load-if-defined JAPANESE-CIV
(defrule
(goal combat-arm NOTICE)
=>
(set-goal 13 2)
(set-goal monk-rating GOOD)
(disable-self)
)
(defrule
(goal combat-arm NOTICE)
=>
(set-goal castle-attempt NO)
(generate-random-number 24)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 1)
(random-number <= 5)
=>
(set-goal combat-arm INFANTRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 6)
=>
(set-goal combat-arm LIGHTCAV)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 7)
(random-number <= 9)
=>
(set-goal combat-arm CAVARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 10)
(random-number <= 12)
=>
(set-goal combat-arm ARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 13)
=>
(set-goal combat-arm UNIQUE)
(set-goal pre-unique-arm INFANTRY)
(set-goal castle-attempt YES)
)
(defrule
(goal combat-arm UNIQUE)
(building-type-count castle == 0)
(not (goal pre-unique-arm INFANTRY) )
=>
(set-goal pre-unique-arm INFANTRY)
)
#end-if
;*********************************************************
#load-if-defined MONGOL-CIV
(defrule
(goal combat-arm NOTICE)
=>
(set-goal 13 0)
(set-goal monk-rating POOR)
(disable-self)
)
(defrule
(goal combat-arm NOTICE)
=>
(set-goal castle-attempt NO)
(generate-random-number 32)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 1)
(random-number <= 3)
=>
(set-goal combat-arm INFANTRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 4)
(random-number <= 8)
=>
(set-goal combat-arm LIGHTCAV)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 9)
(random-number <= 13)
=>
(set-goal combat-arm CAVARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 14)
(random-number <= 16)
=>
(set-goal combat-arm ARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 17)
=>
(set-goal combat-arm UNIQUE)
(set-goal castle-attempt YES)
)
(defrule
(goal combat-arm UNIQUE)
(current-age == feudal-age)
(not (goal pre-unique-arm ARCHER) )
=>
(set-goal pre-unique-arm ARCHER)
)
(defrule
(goal combat-arm UNIQUE)
(current-age >= castle-age)
(building-type-count castle == 0)
(not (goal pre-unique-arm CAVARCHER) )
=>
(set-goal pre-unique-arm CAVARCHER)
)
#end-if
;*********************************************************
#load-if-defined PERSIAN-CIV
(defrule
(goal combat-arm NOTICE)
=>
(set-goal 13 0)
(set-goal monk-rating POOR)
(disable-self)
)
(defrule
(goal combat-arm NOTICE)
=>
(set-goal castle-attempt NO)
(generate-random-number 10)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 1)
=>
(set-goal combat-arm CAVALRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 2)
=>
(set-goal combat-arm LIGHTCAV)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 3)
(random-number <= 5)
=>
(set-goal combat-arm CAVARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 6)
=>
(set-goal combat-arm UNIQUE)
(set-goal pre-unique-arm CAVALRY)
(set-goal castle-attempt YES)
)
(defrule
(goal combat-arm UNIQUE)
(current-age == feudal-age)
(not (goal pre-unique-arm INFANTRY) )
=>
(set-goal pre-unique-arm INFANTRY)
)
(defrule
(goal combat-arm UNIQUE)
(building-type-count castle == 0)
(current-age >= castle-age)
(not (goal pre-unique-arm CAVALRY) )
=>
(set-goal pre-unique-arm CAVALRY)
)
#end-if
;*********************************************************
#load-if-defined SARACEN-CIV
(defrule
(goal combat-arm NOTICE)
=>
(set-goal 13 1)
(set-goal monk-rating GOOD)
(disable-self)
)
(defrule
(goal combat-arm NOTICE)
=>
(set-goal castle-attempt NO)
(generate-random-number 22)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 1)
(random-number <= 3)
=>
(set-goal combat-arm INFANTRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 4)
=>
(set-goal combat-arm LIGHTCAV)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 5)
(random-number <= 11)
=>
(set-goal combat-arm CAVARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 12)
=>
(set-goal combat-arm UNIQUE)
(set-goal pre-unique-arm CAVALRY)
(set-goal castle-attempt YES)
)
(defrule
(goal combat-arm UNIQUE)
(current-age == feudal-age)
(not (goal pre-unique-arm INFANTRY) )
=>
(set-goal pre-unique-arm INFANTRY)
)
(defrule
(goal combat-arm UNIQUE)
(building-type-count castle == 0)
(current-age >= castle-age)
(not (goal pre-unique-arm CAVALRY) )
=>
(set-goal pre-unique-arm CAVALRY)
)
#end-if
;*********************************************************
#load-if-defined TEUTONIC-CIV
(defrule
(goal combat-arm NOTICE)
=>
(set-goal 13 0)
(set-goal monk-rating GOOD)
(disable-self)
)
(defrule
(goal combat-arm NOTICE)
=>
(set-goal castle-attempt NO)
(generate-random-number 8)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 1)
=>
(set-goal combat-arm INFANTRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 2)
(random-number <= 4)
=>
(set-goal combat-arm CAVALRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 5)
=>
(set-goal combat-arm UNIQUE)
(set-goal pre-unique-arm INFANTRY)
(set-goal castle-attempt YES)
)
(defrule
(goal combat-arm UNIQUE)
(building-type-count castle == 0)
(not (goal pre-unique-arm INFANTRY) )
=>
(set-goal pre-unique-arm INFANTRY)
)
#end-if
;*********************************************************
#load-if-defined TURKISH-CIV
(defrule
(goal combat-arm NOTICE)
=>
(set-goal 13 1)
(set-goal monk-rating FAIR)
(disable-self)
)
(defrule
(goal combat-arm NOTICE)
=>
(set-goal castle-attempt NO)
(generate-random-number 28)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 1)
(random-number <= 3)
=>
(set-goal combat-arm INFANTRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 4)
(random-number <= 8)
=>
(set-goal combat-arm LIGHTCAV)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 9)
(random-number <= 11)
=>
(set-goal combat-arm CAVARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 12)
(random-number <= 14)
=>
(set-goal combat-arm ARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 15)
=>
(set-goal combat-arm UNIQUE)
(set-goal pre-unique-arm ARCHER)
(set-goal castle-attempt YES)
)
(defrule
(goal combat-arm UNIQUE)
(building-type-count castle == 0)
(not (goal pre-unique-arm ARCHER) )
=>
(set-goal pre-unique-arm ARCHER)
)
#end-if
;*********************************************************
#load-if-defined VIKING-CIV
(defrule
(goal combat-arm NOTICE)
=>
(set-goal 13 3)
(set-goal monk-rating POOR)
(disable-self)
)
(defrule
(goal combat-arm NOTICE)
=>
(set-goal castle-attempt NO)
(generate-random-number 18)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 1)
(random-number <= 5)
=>
(set-goal combat-arm INFANTRY)
)
(defrule
(goal combat-arm NOTICE)
(random-number == 6)
=>
(set-goal combat-arm LIGHTCAV)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 7)
(random-number <= 9)
=>
(set-goal combat-arm ARCHER)
)
(defrule
(goal combat-arm NOTICE)
(random-number >= 10)
=>
(set-goal combat-arm UNIQUE)
(set-goal pre-unique-arm INFANTRY)
(set-goal castle-attempt YES)
)
(defrule
(goal combat-arm UNIQUE)
(building-type-count castle == 0)
(not (goal pre-unique-arm INFANTRY) )
=>
(set-goal pre-unique-arm INFANTRY)
)
(defrule
(goal castle-attempt NO)
(or
(goal sea-owner YES)
(nor
(player-in-game any-computer-ally)
(or
(player-in-game any-human-ally)
(goal 1 0)
)
)
)
=>
(set-goal castle-attempt YES)
)
#end-if
(defrule
(goal combat-arm UNIQUE)
(current-age >= castle-age)
(building-type-count castle > 0)
(not (goal pre-unique-arm NO) )
=>
(set-goal pre-unique-arm NO)
)